package com.sz.stock.client;

import com.sz.stock.model.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
@FeignClient("stock-market")
public interface StockClient {

    //查询股票信息表
    @RequestMapping("/stock/getStock1")
    Stock getStock1(@RequestBody String code);
}
